import request from './request'

// 用户登录
export const login = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

// 用户注册
export const register = (data) => {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}

// 用户登出
export const logout = () => {
  return request({
    url: '/logout',
    method: 'post'
  })
}

// 修改密码
export const changePassword = (data) => {
  return request({
    url: '/changePassword',
    method: 'post',
    data
  })
}